package uy.com.tsi2G7.superbet.user;

import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.List;

import javax.ejb.Local;

@Local
public interface UserService {
	public List<Country> getCountries()throws RemoteException,UserServiceException;
	public List<City> getCities(String country)throws RemoteException,UserServiceException;
	public User addNewUser(String name,String surname,String mail,String pass,String sex,String country,int city,Timestamp bornDaye,File image)throws RemoteException, UserServiceException;
	public User login(String userId)throws RemoteException,UserServiceException;
	public File getImage(String userId)throws RemoteException,UserServiceException;
	public void editUserProfile(User user,File image)throws RemoteException, UserServiceException;
	public User validateCredentials(String user, String password)throws Exception;
}
